﻿using System;
using System.Windows;
using Aeon.Emulator.DebugSupport;

namespace Aeon.Presentation.Debugger
{
    /// <summary>
    /// Simple window for displaying an instruction log.
    /// </summary>
    [CLSCompliant(false)]
    public partial class InstructionLogWindow : Window
    {
        /// <summary>
        /// The InstructionLog dependency property definition.
        /// </summary>
        public static readonly DependencyProperty InstructionLogProperty = DependencyProperty.Register("InstructionLog", typeof(InstructionLog), typeof(InstructionLogWindow));

        /// <summary>
        /// Initializes a new instance of the InstructionLogWindow class.
        /// </summary>
        public InstructionLogWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the instruction log to display. This is a dependency property.
        /// </summary>
        public InstructionLog InstructionLog
        {
            get { return (InstructionLog)GetValue(InstructionLogProperty); }
            set { SetValue(InstructionLogProperty, value); }
        }
    }
}
